package com.kasinf.sample.mybatis.dal.dataobject;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.kasinf.framework.mybatis.core.dataobject.BaseDO;
import com.kasinf.framework.mybatis.core.dataobject.VersionDO;
import lombok.AccessLevel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.FieldDefaults;

/**
 * 角色实体
 *
 * @Author : Kaiser
 * @Date: 2025/5/19  14:30
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@FieldDefaults(level = AccessLevel.PRIVATE)
@TableName("sys_role")
public class RoleDO extends BaseDO implements VersionDO {

    @TableId
    Long id;

    String name;

    String code;

    @Version
    Integer version;
}
